Gets an array display string for the specified items and format requirements. Namespace: Microsoft.ConfigurationManagement.AdminConsole.Common
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim itemArray As T()
Dim displayDataType As TypeOfData
Dim sortArray As Boolean
Dim format As String
Dim provider As IFormatProvider
Dim returnValue As String

returnValue = UtilityClass.GetArrayDisplayString(itemArray, displayDataType, sortArray, format, provider)

Syntax

Visual Basic
Public Shared Function GetArrayDisplayString(Of T) ( _
		itemArray As T(), _
		displayDataType As TypeOfData, _
		sortArray As Boolean, _
		format As String, _
		provider As IFormatProvider _
) As String
C#
public static string GetArrayDisplayString<T> (
		T[] itemArray,
		TypeOfData displayDataType,
		bool sortArray,
		string format,
		IFormatProvider provider
)
C++
public:
generic<typename T>
static String^ GetArrayDisplayString (
		array<T>^ itemArray, 
		TypeOfData displayDataType, 
		bool sortArray, 
		String^ format, 
		IFormatProvider^ provider
)
J#

JScript

Parameters

itemArray

[in] One-dimensional array of items, with zero-based indexing.

displayDataType

[in] ManagementClassPropertyDescription.TypeOfData value that indicates the type of display data.

sortArray

[in] Array of Boolean values to use for sorting the display items.

format

[in] Format to use for the display string.

provider

[in] System.IFormatProvider object to control formatting.

Return Value

The array display string.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also